package cn.edu.ctbu.demo2.service;


import cn.edu.ctbu.demo2.domain.Score;
import cn.edu.ctbu.demo2.domain.Student;
import cn.edu.ctbu.demo2.domain.User;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ScoreService {

    Score add(Score score);
    Score Insert(Score score);

    Page<Score> findAll(Pageable pageable);

    public Page<Score> findAll(Example<Score> score, Pageable pageable);

    Score getById(Integer id);

    Score update(Score score);

    void delete(Integer id);
}
